package com.linxz.ui.recycleview.enums;

/**
 * @author Linxz
 * 创建日期：2020年03月01日 20:07
 * version：v4.5.4
 * 描述：
 */
public enum MultiType {
    TEXT(0),
    ONE_BIG_IMAGE(1),
    ONE_SMALL_IMAGE(2),
    TWO_IMAGE(3),
    THREE_IMAGE(4),
    MULTI_IMAGE(5);
    private int type;
    MultiType(int type){
        this.type=type;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public MultiType typeTpEnum(int type){
        for (int i=0;i<values().length;i++){
            if (values()[i].getType()==type){
                return values()[i];
            }
        }
        return TEXT;
    }
}
